package com.example.administrator.shzs.parse;
import com.alibaba.fastjson.JSON;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.List;
import com.example.administrator.shzs.entity.EvaluateData.EvaluateList;
/**
 * 解析评论列表
 */
public class ParseEvaluateList {

    public static List<EvaluateList> getEvaluateListData(String result) throws JSONException {
        List<EvaluateList> lists;
        JSONObject object=new JSONObject(result);
        JSONArray array = object.getJSONArray("datalist");
        lists= JSON.parseArray(array.toString(),EvaluateList.class);
        return lists;
    }
}
